import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqRewardHelper } from "../Public/SeqRewardHelper";
import { SEntityId } from "../Public/SEntityId";
//class SPetChallengeLog
    
    export  class SPetChallengeLog
    {
       

        public __write(arg1: SerializeStream): void
        {
            this.entityId.__write(arg1);
            arg1.writeString(this.playerName);
            arg1.writeString(this.petName);
            arg1.writeBool(this.challenge);
            arg1.writeBool(this.success);
            SeqRewardHelper.write(arg1, this.rewards);
            arg1.writeDate(this.logDt);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.entityId = new SEntityId();
            this.entityId.__read(arg1);
            this.playerName = arg1.readString();
            this.petName = arg1.readString();
            this.challenge = arg1.readBool();
            this.success = arg1.readBool();
            this.rewards = SeqRewardHelper.read(arg1);
            this.logDt = arg1.readDate();
            return;
        }

        public /* var */entityId: SEntityId;

        public /* var */playerName: string;

        public /* var */petName: string;

        public /* var */challenge: Boolean;

        public /* var */success: Boolean;

        public /* var */rewards: Array<any>;

        public /* var */logDt: Date;
    }
